package sdk.pay.constant;

public final class PayConstant {
    /**
     * * 1 When the SDK access token, use the version number ext_sdkversion parameters are sent to use API gateway.
     * 2 Order to increase the SDK version field, convenient order version number query
     * 3 Version number rules for android and IOS before two simultaneous use of version, identify common function upgrade, such as 1.2 1.3 identifies common perfect function
     * 4 Third version, by its own small version, the competent development to grasp as 1.2.100 said the 1.2 one hundredth upgrade
     * 5 The version number of the fourth marking system, android with 1, apple in 2, such as 1.2.100.1 said android version 1.2 100th upgrade 1.2.100.2 said apple's 100th upgrade version 1.2
     * 1 SDK在获取token时,将版本号用ext_sdkversion参数发送至在用API网关.
     * 2 订单上增加SDK版本字段,方便订单版本号查询
     * 3 版本号规则前两位为安卓和IOS共同同步使用的版本,标识共同功能升级,比如1.2 1.3 标识共同完善的功能
     * 4 版本号第三位,由各自的小版本,由开发主管自行掌握  如1.2.100 表示1.2版本的第一百个小升级
     * 5 版本号的第4位标识系统,安卓用1,苹果用2,如1.2.100.1表示安卓的1.2版本的第100个升级 1.2.100.2 表示苹果的1.2版本的第100个升级
     */
    public static final String VERSION_CODE = "2.5.2.1";
    public static final String DATABASE_NAME = "sdk_db";
    public static final String DEVICE_TYPE_NAME = "Android";
    /*-okhttp time out-*/
    public static final long TIME_OUT = 30L;
    public static final long PAY_TIME_OUT = 15L;

    /*-internet interface-*/
    protected static final String TYPE_PARAM = "/SDK/GetPayTypeList";
    protected static final String PAY_PARAM = "/sdk/AppAes_2ndNew";
    protected static final String ORDER_PARAM = "/sdk/tokenquery";
    protected static final String TOKEN_PARAM = "/sdk/tokenNew";
    protected static final String STEP_PAY_PARAM = "/sdk/StepPayNew";
    protected static final String DO_UPLOAD_PARAM = "/sdk/UploadTheLog";


    private static native String defaultPayUrlJftFromJNI();

    private static native String defaultPayUrlYhbFromJNI();

    private static native String defaultPayUrlYzfFromJNI();

    private static native String defaultPayUrlWsfFromJNI();

    private static native String getServicesJftFromJNI();

    private static native String getServicesYhbFromJNI();

    private static native String getServicesYzfFromJNI();

    private static native String getServicesWsfFromJNI();

    private static native String shareperferenceNameFromJNI();

    private static native String shareperferenceMsgKeyFromJNI();

    private static native String shareperferenceNonceKeyFromJNI();

    private static native String shareperferenceServcersSumKeyFromJNI();

    private static native String shareperferenceServcersCurrentKeyFromJNI();

    private static native String shareperferenceTimerHistoryFromJNI();

    /*-default pay url-*/
    public static final String DEFAULT_PAY_URL_JFT;
    public static final String DEFAULT_PAY_URL_YHB;
    public static final String DEFAULT_PAY_URL_YZF;
    public static final String DEFAULT_PAY_URL_WSF;
    /*-main api-*/
    public static final String GET_SERVICES_JFT;
    public static final String GET_SERVICES_YHB;
    public static final String GET_SERVICES_YZF;
    public static final String GET_SERVICES_WSF;
    //    public static final String UPLOAD_LOG_API="http://xwhzpp666.tpddns.cn:5982/sdk/UploadTheLog";
    /*-sharepreference key-*/
    public static final String SHAREPERFERENCE_NAME;
    public static final String SHAREPERFERENCE_MSG_KEY;
    public static final String SHAREPERFERENCE_NONCE_KEY;
    public static final String SHAREPERFERENCE_SERVCERS_SUM_KEY;
    public static final String SHAREPERFERENCE_SERVCERS_CURRENT_KEY;
    public static final String SHAREPERFERENCE_TIMR_HISTORY;

    static {
        DEFAULT_PAY_URL_JFT = defaultPayUrlJftFromJNI();
        DEFAULT_PAY_URL_YHB = defaultPayUrlYhbFromJNI();
        DEFAULT_PAY_URL_YZF = defaultPayUrlYzfFromJNI();
        DEFAULT_PAY_URL_WSF = defaultPayUrlWsfFromJNI();
        GET_SERVICES_JFT = getServicesJftFromJNI();
        GET_SERVICES_YHB = getServicesYhbFromJNI();
        GET_SERVICES_YZF = getServicesYzfFromJNI();
        GET_SERVICES_WSF = getServicesWsfFromJNI();
        SHAREPERFERENCE_NAME = shareperferenceNameFromJNI();
        SHAREPERFERENCE_MSG_KEY = shareperferenceMsgKeyFromJNI();
        SHAREPERFERENCE_NONCE_KEY = shareperferenceNonceKeyFromJNI();
        SHAREPERFERENCE_SERVCERS_SUM_KEY = shareperferenceServcersSumKeyFromJNI();
        SHAREPERFERENCE_SERVCERS_CURRENT_KEY = shareperferenceServcersCurrentKeyFromJNI();
        SHAREPERFERENCE_TIMR_HISTORY = shareperferenceTimerHistoryFromJNI();
    }

}